<template>
  <div>
    <div class="videoheads">
      <h2>
        面签答题:
      </h2>
      <el-button
        id="gobackvideo"
        type="primary"
        @click="gobackvideo()"
        size="mini"
        >返回</el-button
      >
    </div>
    <!-- {{ tableData }} -->
    <el-divider></el-divider>
    <div class="videobody">
      <el-table :data="facevideo.list" border>
        {{ facevideo.list }}
        <el-table-column
          prop="questionTitle"
          label="题目"
          align="center"
        ></el-table-column>
        <el-table-column
          prop="content"
          label="题目内容"
          align="center"
        ></el-table-column>
        <el-table-column
          prop="questionType"
          label="题目类型"
          align="center"
        ></el-table-column>

        <el-table-column
          prop="answer"
          label="答案"
          align="center"
        ></el-table-column>

        <el-table-column label="回答" width="300px" align="center">
          <template slot-scope="{ row }">
            <el-radio-group
              v-model="row.userAnswer"
              v-if="row.questionType === '单选'"
            >
              <el-radio
                :label="option"
                v-for="(option, index) in row.verifyAnswerValues"
                :key="index"
                >{{ option.answerValueName }}</el-radio
              >
            </el-radio-group>
            <el-checkbox-group v-model="row.userAnswerNum" v-else>
              <el-checkbox
                :label="option"
                v-for="(option, index) in row.verifyAnswerValues"
                :key="index"
                >{{ option.answerValueName }}</el-checkbox
              >
            </el-checkbox-group>
          </template>
        </el-table-column>

        <el-table-column label="备注" align="center">
          <template slot-scope="{ row }">
            <el-input v-model="row.remark" size="mini"></el-input>
          </template>
        </el-table-column>
      </el-table>
    </div>

    <div class="face-video-footer">
      <div class="face-video-footer-left">
        <!-- sdk视频 -->
        <!--系统日志信息层-->
        <div id="LOG_DIV_BODY">
          <div id="LOG_DIV_TITLE">系统日志</div>
          <div id="LOG_DIV_CONTENT"></div>
        </div>

        <!--操作等待层 -->
        <div id="LOADING_DIV">
          <img
            src="../../../public/assets/theme/img/LoadImg.gif"
            alt="请等待..."
            style=" height:50px;"
          />
        </div>

        <!--灰色背景透明层 -->
        <div id="LOADING_GREY_DIV"></div>

        <!--所有界面与浏览器顶部距离层 -->
        <div id="margintop"></div>

        <!-- 主页面等 -->
        <div id="MAIN_DIV">
          <!--安装插件提示层 -->
          <div id="prompt_div">
            <div class="close_div">
              <div id="prompt_div_headline1">插件安装提示</div>
              <div id="prompt_div_headline2">刷新</div>
            </div>
            <div>
              <div id="prompt_div_line1"></div>
              <div id="prompt_div_line2">控件安装完成后，请重启浏览器</div>
              <div
                id="prompt_div_btn_load"
                onclick="window.open('http://anychat.oss.aliyuncs.com/AnyChatWebSetup.exe')"
              >
                下载安装
              </div>
            </div>
          </div>

          <!--登录层 -->
          <div id="login_div">
            <div style=" height:35px;">
              <!-- <div
                style=" height:35px; line-height:35px; text-align:left; margin:10px 5px 0px 5px; text-align:center;"
              >
                AnyChat 
              </div>
              <div id="cutoff_div"></div> -->
            </div>
            <div class="wordage">
              帐号：<input
                type="text"
                id="username"
                v-model="agentInfo.agentId"
              /><a id="a_error_user" style=" color:#FAFADD; font-size:15px;"
                >&nbsp×</a
              >
            </div>
            <div class="wordage">
              密码：<input
                type="text"
                id="password"
                onfocus="PasswordFocus(this,'white')"
                onblur="myblur(this,'white')"
                value=""
                style="color:#CDCDCD"
              /><a id="a_error_password" style=" color:#FAFADD; font-size:15px;"
                >&nbsp×</a
              >
            </div>

            <div id="Btn_div">
              <div
                id="setting"
                class="Btn"
                onmouseout="Mouseout('setting')"
                onmousemove="Mouseover('setting')"
                style=" float:left;"
              >
                设置
              </div>
              <div
                id="loginbtn"
                class="Btn"
                onmouseout="Mouseout('loginbtn')"
                onmousemove="Mouseover('loginbtn')"
                onclick="LoginToHall()"
                style=" float:right;"
              >
                登录
              </div>
            </div>
            <div id="setting_div">
              <div id="setting_div_input">
                服务器：&nbsp<input
                  type="text"
                  id="ServerAddr"
                  style="width:120px;"
                />&nbsp&nbsp&nbsp 端口：&nbsp<input
                  type="text"
                  id="ServerPort"
                  style="width:40px;"
                /><br />
                应用ID：&nbsp<input
                  type="text"
                  id="AppGuid"
                  style="width:222px;margin-top: 3px;"
                />
              </div>
            </div>
          </div>

          <!--大厅层 -->
          <div id="hall_div">
            <div style="width:610px; height:25px;"></div>
            <div id="hall_div_myinfo">
              <div id="hall_div_myinfo1">
                <table style="width:100%; margin-top:15px;">
                  <tr>
                    <td class="hall_div_left">昵称：</td>
                    <td class="hall_div_center" id="hall_div_td_name"></td>
                  </tr>
                  <tr>
                    <td class="hall_div_left">ID：</td>
                    <td class="hall_div_center" id="hall_div_td_id"></td>
                  </tr>
                  <tr>
                    <td class="hall_div_left">级别：</td>
                    <td class="hall_div_center" id="hall_div_td_level"></td>
                  </tr>
                  <tr>
                    <td class="hall_div_left">IP：</td>
                    <td class="hall_div_center" id="hall_div_td_ip"></td>
                  </tr>
                </table>
              </div>
              <div id="hall_div_table"></div>
            </div>
          </div>

          <!--房间界面 -->
          <div id="room_div">
            <div style="float:left;">
              <div id="room_div_left">
                <div id="room_div_userlist"></div>
                <div id="room_div_myobject">
                  <div id="AnyChatLocalVideoDiv" style="height:147px;"></div>
                  <div style=" text-align:left; width:193px; height:4px;">
                    <div id="LocalAudioVolume"></div>
                  </div>
                </div>
              </div>

              <div id="room_div_right">
                <div id="room_div_otherobject">
                  <div id="AnyChatRemoteVideoDiv"></div>
                  <div style="width:502px; height:4px; text-align:left;">
                    <div id="RemoteAudioVolume"></div>
                  </div>
                </div>
                <div id="room_div_msgimg">
                  <div id="ReceiveMsgDiv"></div>
                  <div style=" width:505px; height:55px;">
                    <div id="room_div_right_MsgTxt">
                      发言:<input
                        type="text"
                        id="MessageInput"
                        style="width:280px;"
                      />
                    </div>
                    <div
                      id="SendMsg"
                      class="Btn"
                      onmouseout="Mouseout('SendMsg')"
                      onmousemove="Mouseover('SendMsg')"
                      style="float:left;"
                    >
                      发送信息
                    </div>
                  </div>
                </div>
              </div>
            </div>

            <!--功能测试-->
            <div
              style="width:100%; height:auto;background-color:#FFFFCC;float:left;text-align:center;line-height:5px;"
            ></div>
          </div>
        </div>
        <div class="face-video-footer-right">
          <!-- 按钮区 -->
          <el-button type="primary" @click="submit">提交</el-button>
          <el-button type="primary" id="resetSendvideo">重新发起</el-button>
          <el-button id="leaveroom" type="primary">挂机</el-button>

          <!-- <el-botton type="primary" id="Sendvideo" style="margin-bottom: 20px;">
          发起视频</el-botton
        > -->
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import {
  queryfaceuserinfoQueryAll,
  queryfaceuserinfoQueryAllsave,
  queryget100001 //获取固定问题答案
} from "@/api/hubeixiaojin/queryInfo";
export default {
  name: "faceuservideo",
  props: ["tableData", "option"],
  components: {},

  data() {
    // 表单身份证x`
    var idcardReg = /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/;
    var validatePhone = (rule, value, callback) => {
      if (!value) {
        return callback(new Error("证件号不能为空!!"));
      }
      if (!idcardReg.test(value)) {
        callback(new Error("请输入正确的证件号码！"));
      } else {
        callback();
      }
    };
    return {
      //固定的问题与答案
      gdwt: {},
      //表格修改背景色用
      radioId: [],
      //搜索框信息
      formInline: {
        idName: "",
        idNum: "",
        idContract: ""
      },
      facevideo: {
        list: []
      },
      agentInfo: {
        //当前座席名字和id
        // dispatchingPerson: Constants.Agent.agentName,
        // dispatchingId: Constants.Agent.agentId,
        // //目标座席和id
        // agentId: "",
        // agentName: "",
        // //座席行政组
        // deptGroupName: Constants.Agent.deptGroupName,
        // //行政组code
        // deptGroupCode: Constants.Agent.deptGroupCode,
        // //access_token
        // access_token: Constants.Agent.access_token,
        // //tenantId
        // tenantId: Constants.Agent.tenantId,
        // //orgCode
        // orgCode: Constants.Agent.orgCode
      }, //调单用到的座席信息
      establishTime: ""
    };
  },

  created() {
    const sessionStr = sessionStorage.getItem("userInfo");
    const agentUser = JSON.parse(sessionStr);
    this.agentInfo = agentUser.content;
    // console.log("Agentid==", this.agentInfo);
    //初始化加载
    window.onload = LogicInit(this.tableData.userid);
    //获取当前年月日时分秒
    this.establishTime = new Date().toLocaleString("default", {
      hour12: false
    });
    // console.log("当前时间", this.establishTime);
  },
  mounted() {
    this.getgdwt(); //固定问题与答案
    // window.onload = InitInterfaceUI();
    // this.getQueryAll(); //获取问题
    // this.loginsdk();
  },
  methods: {
    getgdwt() {
      //获取固定问题答案
      var params = {
        // condition: {
        applSeq: this.tableData.applSeq
        // },
        // sortCol: "id"
      };
      queryget100001(params, this.agentInfo)
        .then(res => {
          // console.log("queryget100001==", res);

          if (res.data.retCode === 200) {
            //获取问题列表
            this.gdwt = res.data.data;
            // this.gdwt = data;

            var paramss = {
              condition: {
                // incomingPassage: "Jptest"
                incomingPassage: this.tableData.docChannel
              },
              sortCol: "id"
            };

            queryfaceuserinfoQueryAll(paramss, this.agentInfo)
              .then(res => {
                console.log("接口拿到的问题列表", res.data.data.listData);
                if (res.data.retCode === 200) {
                  var data = res.data.data.listData[0].verifyQuestions;
                  var arr = [];
                  var gjanswer = [
                    {
                      answer: this.gdwt.purpose,
                      content:
                        "请问您的贷款用途是用于装修类、旅游类、培训类、还是其他类？"
                    },
                    {
                      answer: this.gdwt.applyTnr,
                      content: "请问您贷款还款期限是多长？(需要回答xx月、x年)"
                    },

                    {
                      answer: this.gdwt.applyAmt,
                      content: "请问您申请的贷款金额是多少？"
                    },
                    {
                      answer: "",
                      content:
                        "请问您在我公司办理的贷款是您本人的意愿，还是帮助他人办理？"
                    },
                    {
                      answer: this.gdwt.idNo,
                      content:
                        "请问您完整身份证号码？(若客户表示身份证不在身边，可让客户回答生日替代)"
                    }
                  ];
                  gjanswer.forEach(element => {
                    //添加固定问题
                    data.unshift({
                      answer: element.answer,
                      content: element.content,
                      questionType: "单选",
                      verifyAnswerValues: [
                        {
                          answerValue: "0",
                          answerValueName: "一致"
                        },
                        {
                          answerValue: "1",
                          answerValueName: "不一致"
                        },
                        {
                          answerValue: "2",
                          answerValueName: "未决项"
                        }
                      ]
                    });
                  });

                  console.log("固定问题答案==", this.gdwt);
                  console.log("添加固定问题后==", data);

                  //给每个问题增加选择的答案
                  data.forEach((element, index) => {
                    if (element.verifyAnswerValues.length > 0) {
                      arr.push({
                        ...element,
                        userAnswer: "", //单选答案
                        userAnswerNum: [], //多选答案
                        questionTitle: index + 1
                      });
                    }
                  });
                  console.log("全部汇总后", arr);
                  this.facevideo.list = arr;
                } else {
                  // console.log(res.msg);
                  window.globalUiKit.notify("提示", "获取问题列表失败", "info");
                }
              })
              .catch(err => {
                console.log(err);
              });
          } else {
            window.globalUiKit.notify("提示", "获取固定问题失败", "info");
          }
        })
        .catch(err => {
          console.log(err);
        });
    },
    LoginToHall() {
      console.log("sdk登录触发");
    },
    // //获取问题列表
    // getQueryAll() {
    //   var params = {
    //     condition: {
    //       // incomingPassage: "Jptest"
    //       incomingPassage: this.tableData.docChannel
    //     },
    //     sortCol: "id"
    //   };

    //   queryfaceuserinfoQueryAll(params, this.agentInfo)
    //     .then(res => {
    //       console.log("接口拿到的问题列表", res.data.data.listData);
    //       if (res.data.retCode === 200) {
    //         var data = res.data.data.listData[0].verifyQuestions;
    //         var arr = [];
    //         var gjanswer = [
    //           {
    //             answer: this.gdwt.idNo,
    //             content: "完整的身份证号码"
    //           },
    //           {
    //             answer: "",
    //             content: "贷款是否本人意思"
    //           },
    //           {
    //             answer: this.gdwt.applyAmt,
    //             content: "申请的贷款金额"
    //           },
    //           {
    //             answer: this.gdwt.applyTnr,
    //             content: "贷款还款期限"
    //           },
    //           {
    //             answer: this.gdwt.purpose,
    //             content: "贷款用途"
    //           }
    //         ];
    //         gjanswer.forEach(element => {
    //           //添加固定问题
    //           data.push({
    //             answer: element.answer,
    //             content: element.content,
    //             questionType: "单选",
    //             verifyAnswerValues: [
    //               {
    //                 answerValue: "0",
    //                 answerValueName: "对"
    //               },
    //               {
    //                 answerValue: "1",
    //                 answerValueName: "错"
    //               }
    //             ]
    //           });
    //         });

    //         console.log("固定问题答案==", this.gdwt);
    //         console.log("添加固定问题后==", data);

    //         //给每个问题增加选择的答案
    //         data.forEach((element, index) => {
    //           if (element.verifyAnswerValues.length > 0) {
    //             arr.push({
    //               ...element,
    //               userAnswer: "", //单选答案
    //               userAnswerNum: [], //多选答案
    //               questionTitle: index + 1
    //             });
    //           }
    //         });
    //         console.log("全部汇总后", arr);
    //         this.facevideo.list = arr;
    //       } else {
    //         // console.log(res.msg);
    //         window.globalUiKit.notify("提示", "获取问题列表失败", "info");
    //       }
    //     })
    //     .catch(err => {
    //       console.log(err);
    //     });
    // },

    gobackvideo() {
      //返回数据搜索页
      this.$emit("gobackvideo");
    },
    submit() {
      // window.eventEmitter.$on("lpFileName", function(data) {
      // });

      let secureUrl = lpFileNames.replace("http://", "https://");
      // console.log(secureUrl);
      console.log("保存的录像地址", secureUrl);

      // console.log("");

      var arr = [],
        answerbs = true, //问题回答标识
        answerValueall = 0, //总分数
        data = this.facevideo.list;
      //处理数据

      data.forEach((element, index) => {
        //判断问题是否全部回答
        if (element.userAnswer === "") {
          //问题没有回答完毕
          answerbs = false;
        }
        if (element.userAnswer) {
          arr.push({
            ...element,
            questionId: element.id, //客户ID
            answerValue: element.userAnswer.answerValue, //分数
            answerValueName: element.userAnswer.answerValueName, //选择的答案
            remark: element.remark //备注
          });
        }
        answerValueall += element.userAnswer.answerValue; //总分数
      });
      console.log("回答完后总结", arr);
      // if (answerbs === false) {
      //   return this.$message.error("请回答完所有问题");
      // }

      var params = {
        condition: {
          establishTime: this.establishTime, //建立会话时间 必填
          connectEndTime: new Date().toLocaleString("default", {
            hour12: false
          }), //结束会话时间 必填
          id: this.tableData.id,
          // sessionId: this.agentInfo.sid, //取工作台还是sdk待确定
          quertionType: "", //问题类型
          releaseCode: "0", //挂机原因
          videoUrl: secureUrl, //视频地址
          listAnswers: arr,
          sortCol: "id",
          answerValueall: answerValueall //总分数
        }
      };
      // console.log("保存回答问题==", params);
      queryfaceuserinfoQueryAllsave(params, this.agentInfo)
        .then(res => {
          if (res.data.retCode === 200) {
            this.$message.success("视频与答题保存成功");
            this.$emit("gobackvideo");
          } else {
            // console.log(res.msg);
            this.$message.error("视频与答题保存失败");
            // window.globalUiKit.notify("提示", "获取问题列表失败", "info");
          }
        })
        .catch(err => {
          console.log(err);
        });
    }
    // reset() {
    //   console.log("重置");
    // },
    // loadAnyChat() {
    //   var self = this;
    //   console.log("初始化sdk");
    //   // LogicInit();
    //   // setTimeout(function() {
    //   //   if (navigator.plugins && navigator.plugins.length) {
    //   //     window.navigator.plugins.refresh(false);
    //   //   }
    //   //   var errorcode = BRAC_InitSDK(0);
    //   //   console.log("errorcode == ", errorcode);

    //   //   if (errorcode == 0) {
    //   //     console.log(
    //   //       "初始化成功，清除插件安装检测定时器",
    //   //       mRefreshPluginTimer
    //   //     );
    //   //     //初始化成功，清除插件安装检测定时器
    //   //     if (mRefreshPluginTimer != -1) {
    //   //       clearInterval(mRefreshPluginTimer);
    //   //     }
    //   //     self.loginsdk();
    //   //   } else {
    //   //     if (errorcode == GV_ERR_PLUGINNOINSTALL) {
    //   //       console.log("初始化失败，需要安装插件,提供插件下载链接给客户");
    //   //       //初始化失败，需要安装插件,提供插件下载链接给客户
    //   //     } else if (errorcode == GV_ERR_PLUGINOLDVERSION) {
    //   //       console.log("初始化失败，当前插件的版本过低，请下载安装最新版本");
    //   //       //初始化失败，当前插件的版本过低，请下载安装最新版本
    //   //     }
    //   //     if (mRefreshPluginTimer == -1) {
    //   //       mRefreshPluginTimer = setInterval(function() {
    //   //         LogicInit();
    //   //       }, 1000);
    //   //     }
    //   //   }
    //   // }, 500);
    // },

    // loginsdk() {
    //   console.log("链接服务器");
    //   // 连接服务器,视频服务器地址与端口
    //   BRAC_Connect("mini.anychat.cn", 8906);
    //   //登录服务器
    //   BRAC_Login("zhizhi", "123456", 0);
    // }
  }
};
</script>

<style>
.face-video-footer {
  width: 100%;
  /* height: 300px; */
  display: flex;
  margin-top: 10px;
}
.face-video-footer-left {
  width: 85%;
}
.face-video-footer-right {
  margin-top: 2rem;
  display: flex;
  justify-content: space-evenly;
}
.videoheads {
  display: flex;
  justify-content: space-between;
}
</style>

<style>
#LOADING_GREY_DIV {
  display: none;
  background: rgba(0, 0, 0, 0.4) none repeat scroll 0 0 !important;
  filter: Alpha(opacity=40);
  width: 100%;
  height: 100%;
  background-color: #999999;
  position: absolute;
  z-index: 44;
}
#LOADING_DIV {
  position: absolute;
  display: none;
  z-index: 45;
}
#MAIN_DIV {
  text-align: center;
  width: 100%;
}
#LOG_DIV_BODY {
  z-index: -1;
  width: 400px;
  height: 200px;
  right: 20px;
  bottom: 0;
  position: fixed;
  display: none;
}
#LOG_DIV_CONTENT {
  padding: 10px 10px 10px 10px;
  background-color: #c4cedd;
  font-size: 12px;
  width: 400px;
  height: 155px;
  text-align: right;
}
#LOG_DIV_TITLE {
  height: 15px;
  margin-left: 10px;
  font-size: 12px;
  line-height: 15px;
  text-align: right;
}
#prompt_div {
  background-color: White;
  border: 1px solid black;
  width: 500px;
  height: 300px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 35%;
  display: none;
}
.close_div {
  height: 45px;
  width: 480px;
  margin: 0px 10px 0px 10px;
  border-bottom: 1px solid #cccccc;
}
#prompt_div_BR {
  border-top: 1px solid #cccccc;
  height: 45px;
  margin: 40px 10px 10px 10px;
  width: 480px;
  text-align: right;
}
#prompt_div_BR a {
  font-size: 12px;
  color: Blue;
}
#prompt_div_btn_load {
  width: 110px;
  height: 35px;
  line-height: 35px;
  color: White;
  border: 1px solid #915700;
  background-color: #ff8100;
  margin-left: auto;
  margin-right: auto;
  cursor: pointer;
}
#prompt_div_line1 {
  height: 70px;
  line-height: 70px;
  font-size: 12px;
  color: #999999;
  text-align: center;
}
#prompt_div_line2 {
  height: 60px;
  line-height: 50px;
  color: #ff9900;
  font-size: 14px;
  font-weight: bolder;
}
#prompt_div_headline1 {
  font-size: 15px;
  width: 100px;
  height: 50px;
  line-height: 60px;
  text-align: center;
  float: left;
}
#prompt_div_headline2 {
  font-size: 12px;
  width: 38px;
  height: 50px;
  line-height: 60px;
  text-align: center;
  float: right;
  cursor: pointer;
}
#login_div {
  display: none;
  border: 1px solid black;
  width: 320px;
  background-color: #fafadd;
  margin-left: auto;
  margin-right: auto;
}
.wordage {
  font-size: 15px;
  width: 320px;
  height: 40px;
  line-height: 40px;
}
#Btn_div {
  width: 320px;
  height: 55px;
}
#cutoff_div {
  height: 5px;
  border-bottom: 1px solid black;
  margin: 0px 5px 0px 5px;
}
.Btn {
  background-color: #e6e6e6;
  margin: 5px;
  padding: 5px;
  width: auto;
  height: auto;
  line-height: 25px;
  text-align: center;
  font-size: 15px;
  border: 1px solid black;
  cursor: pointer;
}
#setting_div {
  width: 320px;
  height: 80px;
  display: none;
}
#setting_div_input {
  font-size: 13px;
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid black;
}
#hall_div {
  background-color: #9caac1;
  border: 1px solid black;
  width: 610px;
  height: 400px;
  margin-left: auto;
  margin-right: auto;
  display: none;
  text-align: center;
}
#hall_div_myinfo {
  width: 610px;
  height: 375px;
}
#hall_div_myinfo1 {
  background-color: White;
  margin-left: 20px;
  float: left;
  width: 190px;
  height: 355px;
  overflow: hidden;
  border: 1px solid black;
  font-family: 微软雅黑;
  font-size: 13px;
}
.hall_div_center {
  text-align: center;
  width: 65%;
}
.hall_div_left {
  text-align: right;
  width: 35%;
}
.hall_div_table_room {
  background-color: #e6e6e6;
  width: 50px;
  height: 50px;
  float: left;
  cursor: pointer;
  line-height: 50px;
  font-family: 华文楷体;
  border: 1px solid black;
  margin: 10px 5px 10px 11px;
}
#hall_div_table {
  background-color: White;
  margin-right: 20px;
  border: 1px solid black;
  width: 350px;
  height: 355px;
  float: right;
}
#hall_div_operation {
  width: 350px;
  height: 200px;
}
/* #EnterRoomBtn {
  width: 40px;
  text-align: center;
  cursor: pointer;
  border: 1px solid black;
  background-color: #e6e6e6;
}
#EnterRoomBtn2 {
  width: 70px;
  text-align: center;
  cursor: pointer;
  border: 1px solid black;
  background-color: #e6e6e6;
} */
#advancedsetting {
  cursor: pointer;
  background-color: #e6e6e6;
  height: 25px;
  width: 80px;
  border: 1px solid black;
  text-align: center;
  margin: 10px auto 0px auto;
}
#ExitSystemBtn {
  float: right;
  margin-right: 15px;
  margin-top: 3px;
  cursor: pointer;
  font-size: 13px;
}
#hall_div_operation_div1 {
  height: 30px;
  width: 350px;
  margin-top: 170px;
}
#hall_div_operation_div2 {
  width: 350px;
  margin-left: 20px;
  font-size: 14px;
}
#hall_div_customroomdiv {
  text-align: left;
  float: left;
  width: 250px;
}

#hall_div_customroomdiv_btn {
  float: left;
  width: 95px;
  text-align: left;
}
#hall_div_customroomdiv_btn2 {
  float: left;
  width: 95px;
  text-align: left;
  margin-top: 10px;
}
#room_div {
  display: none;
  z-index: 20;
  margin-left: 500px;
  border: 1px solid black;
  height: 685px;
  width: 750px;
  background-color: #9caac1;
  margin-left: auto;
  margin-right: auto;
}
#room_div_left {
  width: 200px;
  height: 550px;
  float: left;
}
#room_div_right {
  width: 500px;
  height: 560px;
  float: right;
}
#room_div_userlist {
  overflow: hidden;
  background-color: White;
  width: 200px;
  height: 200px;
  border: 1px solid black;
}
#room_div_myobject {
  width: 195px;
  height: 155px;
  overflow: hidden;
  margin: 10px 0px 0px 3px;
}
#room_div_msgimg {
  background: no-repeat;
  width: 500px;
  height: 222px;
  padding: 11px 0px 0px 20px;
}
#room_div_otherobject {
  width: 500px;
  height: 356px;
  overflow: hidden;
}
#ANYCHAT-VIDEO-LOCAL {
  width: 195px;
  height: 147px;
  float: left;
  margin: 0 auto;
}
#ANYCHAT-VIDEO-REMOTE {
  width: 464px;
  height: 348px;
  margin-right: auto;
  margin-left: auto;
}
#AnyChatRemoteVideoDiv {
  width: 502px;
  height: 348px;
  text-align: center;
}
#leaveroom {
  float: right;
  font-size: 13px;
  margin-right: 15px;
  /* margin-top: 10px; */
  cursor: pointer;
}
#ReceiveMsgDiv {
  background-color: White;
  width: 464px;
  height: 137px;
  border: 1px solid #7884ac;
  overflow-y: hidden;
}
#room_div_close {
  width: 750px;
  height: 25px;
  float: left;
}
#room_div_right_MsgTxt {
  width: 325px;
  height: 40px;
  padding-top: 10px;
  float: left;
}
#RemoteAudioVolume {
  width: 0px;
  height: 6px;
  background-color: #00ff00;
}
#LocalAudioVolume {
  width: 0px;
  height: 6px;
  background-color: #00ff00;
}
#room_div_userlist a {
  margin-left: 5px;
}
#room_div_userlist img {
  margin-top: 2px;
}
.TheMsgStyle {
  text-align: left;
  font-size: 12px;
  padding-left: 15px;
}
.UserListStyle {
  text-align: left;
  font-size: 12px;
  padding-left: 15px;
  height: 20px;
  overflow: hidden;
}
#advanceset_div {
  margin: -220px 0px 0px 600px;
  display: none;
  width: 500px;
  height: 210px;
  position: absolute;
  background-color: #e6e6e6;
  border: 1px solid black;
  z-index: 43;
}
#advanceset_div_close {
  cursor: pointer;
  text-align: right;
  padding: 5px 5px 0px 0px;
  font-size: 12px;
}
#Btn_Div_Device {
  font-size: 14px;
  cursor: pointer;
  background-color: White;
  float: left;
  height: 25px;
  width: 70px;
  text-align: center;
  margin: 5px 0px 0px 0px;
}
.Btn_Div {
  font-size: 14px;
  cursor: pointer;
  background-color: #9caac1;
  float: left;
  height: 25px;
  width: 70px;
  text-align: center;
  margin: 5px 0px 0px 0px;
}
#advanceset_div_mainpark {
  margin: 0px 20px 20px 20px;
  width: 464px;
  height: 170px;
}
#advanceset_div_Div_Btn {
  width: 360px;
  height: 30px;
}
#advanceset_div_mainpark_parameter {
  background-color: White;
  width: 464px;
  height: 135px;
  font-size: 14px;
}
#Device_Interface {
  line-height: 35px;
  margin-left: 60px;
  width: 340px;
  height: 115px;
}
#Video_Parameter_Interface {
  display: none;
  margin-left: 60px;
  width: 340px;
  height: 115px;
}
#advanceset_div_Tab {
  width: 340px;
  height: 115px;
  font-size: 12px;
}
#advanceset_div_Tab a {
  color: #999999;
}
.td_input {
  text-align: right;
}
#regulate {
  cursor: pointer;
  text-align: center;
  line-height: 20px;
  width: 70px;
  height: 20px;
  border: 1px solid black;
}
#apply_changes {
  cursor: pointer;
  text-align: center;
  line-height: 20px;
  width: 70px;
  height: 20px;
  border: 1px solid black;
}
#Sound_Parameter_Interface {
  display: none;
  margin-left: 60px;
  width: 340px;
  height: 115px;
}
.audio_tabcontrol {
  width: 170px;
  height: 30px;
  line-height: 30px;
  float: left;
  text-align: center;
}
#Other_Parameter_Interface {
  display: none;
  margin-left: 60px;
  width: 340px;
  text-align: center;
  height: 115px;
  line-height: 115px;
}
</style>
